package com.itheima.Demo01.demo02;

public class getClass02 {
    public static void main(String[] args) throws ClassNotFoundException {
        Student S = new Student();
        java.lang.Class aClass1 = S.getClass();
        System.out.println(aClass1);

        java.lang.Class aClass2 = java.lang.Class.forName("com.itheima.Demo01.demo02.Student");
        System.out.println(aClass2);

        java.lang.Class aClass3 = Student.class;
        System.out.println(aClass3);

        System.out.println(aClass1.equals(aClass2));
        System.out.println(aClass3==aClass2);
    }
}
